
global project "I:\Workdata\702525\Alex\MA"
global home "I:\Workdata\702525\Alex"
global education "I:\Workdata\702525\Alex\Manager\Education"

set more off

*clean data
do "clean_merger.do"
do "clean_manager.do"

*produce manager FE & Table 1 & 2 & Figure A2
do "AKM_merger_cvrnr.do"

/*Run the following code in Matlab to estimate manager FE

"managerfe_1step.m"
"estabyearfe.m"
"managerfe_2step.m"
"managerfe_other.m"
*/

do "table1.do"

*Figure 1 & Figure 2 & Figure A1 & Figure A4 & Figure A5
do "figure1and3.do"

*Figure 3 & Figure A6 & Figure A7 & Table A2 & Table A3 & Table A4
do "figure4.do"

*Figure 4 & Figure A10 & Table A5
do "figure5.do"

*Table 3 & Table 4 & Table A6
do "table3.do"

*Table 5 & Figure A12
do "table5.do"
* Run "predict.ipynb" in Jupyter notebook

*Table A1
do "tableA1.do"

*Figure A3
do "manager_robustness_schoar.do"

*Figure A8
do "reg_propscore.do"

*Figure A9
do "matching_failtarget.do"


